package com.collect.cameroon.zhiBean.zhiReceive;

import com.collect.cameroon.zhiUtils.StringUtil;
import com.collect.cameroon.zhiUtils.ZHICalendarUtil;

import java.io.Serializable;
import java.util.ArrayList;

public class ZHIRCollectMemberPerformanceListEntity implements Serializable {
    private String bonus;
    private String totalBonus;
    private String limitDate;
    private ArrayList<ZHIRCollecterPerformanceEntity> dataList;

    private ZHIRPerformanceCustomerRankEntity rankData;

    private String yellowCard;
    private String flower;
    private String totalRankNums;
    private String rank;

    public ZHIRPerformanceCustomerRankEntity getRankData() {
        if (rankData == null) {
            rankData = new ZHIRPerformanceCustomerRankEntity();
        }
        return rankData;
    }

    public void setRankData(ZHIRPerformanceCustomerRankEntity rankData) {
        this.rankData = rankData;
    }

    public String getBonus() {
        return StringUtil.safeString(bonus);
    }

    public String getBonusFormat() {
        return StringUtil.numberTothousandFormatter(getBonus());
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    public String getLimitDate() {
        return StringUtil.safeString(limitDate);
    }

    public String getLimitDateFormat() {
        return ZHICalendarUtil.getDateStringWithFormat(getLimitDate(), "yyyy-MM-dd", "MM-yyyy");
    }

    public void setLimitDate(String limitDate) {
        this.limitDate = limitDate;
    }

    public ArrayList<ZHIRCollecterPerformanceEntity> getDataList() {
        if (dataList == null) {
            dataList = new ArrayList<>();
        }
        return dataList;
    }

    public void setDataList(ArrayList<ZHIRCollecterPerformanceEntity> dataList) {
        this.dataList = dataList;
    }

    public String getTotalBonus() {
        return StringUtil.safeString(totalBonus);
    }

    public void setTotalBonus(String totalBonus) {
        this.totalBonus = totalBonus;
    }

    public String getTotalBonusFormat() {
        return StringUtil.numberTothousandFormatter(getTotalBonus());
    }

    public String getYellowCard() {
        return StringUtil.safeString(yellowCard);
    }

    public String getYellowCardFormat() {
        return StringUtil.numberTothousandFormatter(getYellowCard());
    }

    public void setYellowCard(String yellowCard) {
        this.yellowCard = yellowCard;
    }

    public String getFlower() {
        return StringUtil.safeString(flower);
    }

    public String getFlowerFormat() {
        return StringUtil.numberTothousandFormatter(getFlower());
    }

    public void setFlower(String flower) {
        this.flower = flower;
    }

    public String getTotalRankNums() {
        return StringUtil.safeString(totalRankNums);
    }

    public void setTotalRankNums(String totalRankNums) {
        this.totalRankNums = totalRankNums;
    }

    public String getRank() {
        return StringUtil.safeString(rank);
    }

    public void setRank(String rank) {
        this.rank = rank;
    }
}
